import java.util.ArrayList;


public class Node {
	private GameBoard gm;
	private ArrayList<Node> children;
	private float utility;
	private boolean dead;
	
	public Node() {
		this.gm = new GameBoard();
		this.children = new ArrayList<Node>();
		dead = false;
	}

	public Node(GameBoard gm, ArrayList<Node> children) {
		this.gm = gm;
		this.children = children;
		this.utility = 0;
		dead = false;
	}
	
	public void setChild(Node n){
		children.add(n);
	}

	public GameBoard getGameBoard() {
		return gm;
	}

	public void setGameBoard(GameBoard gm) {
		this.gm = gm;
	}

	public ArrayList<Node> getChildren() {
		return children;
	}

	public void setChildren(ArrayList<Node> children) {
		this.children = children;
	}

	public float getUtility() {
		return utility;
	}

	public void setUtility(float f) {
		this.utility = f;
	}

	public boolean isDead() {
		return dead;
	}

	public void setDead(boolean dead) {
		this.dead = dead;
	}
	
	
}
